package controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import common.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import service.UserBuyBookRecordService;

@RestController
@RequestMapping("/search")
public class searchcontroller {
    @Autowired
    private UserBuyBookRecordService ubbrs;
@GetMapping("/page")
    public R<Page> page(int page, int pageSize)
    {
        //分页构造器
        Page pageInfo=new Page(page,pageSize);
         ubbrs.page(pageInfo);
         //着实搞不明白mp怎么连表查询
      return R.success(pageInfo);
    }
}
